package cn.wolfcode.wolf2w.domain;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;


/**
 * 景点列表
 */
@Setter
@Getter
@Document("spot")
public class Spot extends BaseDomain {
    //字段
    private String title;
    private String headImage;
    private String phone;
    private Integer time;
    private Integer visitnum;
    private String detailId;

    //特殊的,不用保存到数据库的字段
    //关联的详情对象
    @Transient  //添加时, 忽略该字段, 不要讲这个字段添加到mongodb数据集合中(表)
    private SpotDetail spotDetail;
}
